package Pieces;

import logic.BeamDirection;
import logic.Piece;
import logic.Team;

public class Obelisk implements Piece{
	
	private Team owner;
	private int mounted;
	
	public Obelisk(Team owner){
		this.owner = owner;
		mounted = 1;
	}

	@Override
	public Team getTeam() {
		return owner;
	}

	@Override
	public BeamDirection reflexBeam(BeamDirection incidence) {
		return BeamDirection.NODIRECTION;
	}

	@Override
	public void resetPiece() {		
	}

	@Override
	public void rotateLeft() {		
	}

	@Override
	public void rotateRigth() {		
	}
	
	public void setMounted(int mounted){
		this.mounted = mounted;
	}
	
	public int getMounted(){
		return mounted;
	}
	
	public void mount(){
		mounted++;
	}
	
	public void mount(int obelisks){
		mounted+=obelisks;
	}
	
	public boolean unmount(){
		mounted--;
		if(mounted==0){
			return false;
		}
		return true;
	}


}
